package videostoreapp;

public interface Customer {

    public class CustomerInfo
    {
        public int id;	            // unique customer record id	
        public String name;	        // customer�s name (free text)
        public String address;	    // customer�s address (free text)

        public CustomerInfo(int id, String name, String address)
        {
            this.id = id;
            this.name = name;
            this.address = address;
        }
    }
	
    /**
     * Creates a new Customer record in the customer table 
     * @param cinfo
     * @return ID of the new record or -1 if failure
     */
    public int createCustomer(CustomerInfo cinfo);
	
    /**
     * Modify attributes of a Customer record
     * @param cinfo
     */
    public void modifyCustomer(CustomerInfo cinfo);
    
    /**
     * Deletes a Customer record
     * @param id ID of record to delete
     */
    public void deleteCustomer(int id);
    
    /**
     * Retrieves a Customer record
     * @param id ID of record to retrieve
     * @return CustomerInfo or null if not found.
     */
    public CustomerInfo getCustomerById(int id);
    
    
    
}
